<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page import="java.util.Calendar"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>write DisBoard</title>
<script type="text/javascript">
	$(function() {
		$("#write_Btn").click(function() {
			//alert($("#today").val());
			location.href="${initParam.root}/board_insertDisBoard.do?disNo="+$("#today").val()+"&disContent="+$("#disContent").val();
		});//click
	});//function
</script>
</head>
<body>
<center>
<h2>토론게시판 글쓰기</h2>
<%
Calendar cal =Calendar.getInstance();
%>
<table rules="all">
	<tr>
		<td>Date : <input type="text" id="today" value="<%=cal.get(Calendar.YEAR)%>-<%=cal.get(Calendar.MONTH) +1 %>-<%=cal.get(Calendar.DATE)%>" readonly="readonly"></td>
	</tr>
	<tr>
		<td><textarea id="disContent" rows="10" cols="30" style="resize:none"></textarea></td>
	</tr>
</table>
<input type="button" value="글쓰기" id="write_Btn">
</center>
</body>
</html>